<?php

class Change_Products_Table {

  /**
   * Make changes to the database.
   *
   * @return void
   */
  public function up() {
    Schema::table('products', function($table) {
      $table->date('coupon_start_time');
      $table->date('coupon_end_time');
      $table->drop_column('start_time');
      $table->drop_column('end_time');
    });
  }

  /**
   * Revert the changes to the database.
   *
   * @return void
   */
  public function down() {
    Schema::table('products', function($table) {
      $table->date('start_time');
      $table->date('end_time');
      $table->drop_column('coupon_start_time');
      $table->drop_column('coupon_end_time');
    });
  }

}
